package com.bwie.controller;

import com.bwie.config.R;
import com.bwie.pojo.Section;
import com.bwie.service.SectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Auther:${涛}
 * @Date:2024/9/2 09:50
 * @Description: SectionController
 * @Version 1.0.0
 */
@RestController
@RequestMapping("/car")
public class SectionController {


    //部门列表
    @Autowired
    private SectionService sectionService;


    @PostMapping("/SectionList")
    public R SectionList() {
        List<Section> list = sectionService.list();
        return R.OK(list);
    }
}


